package com.ruoyi.cms.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.cms.mapper.CmsGywmModuleMapper;
import com.ruoyi.cms.domain.CmsGywmModule;
import com.ruoyi.cms.service.ICmsGywmModuleService;

/**
 * 关于我们模块Service业务层处理
 * 
 * @author ruoyi
 * @date 2022-09-08
 */
@Service
public class CmsGywmModuleServiceImpl implements ICmsGywmModuleService 
{
    @Autowired
    private CmsGywmModuleMapper cmsGywmModuleMapper;

    /**
     * 查询关于我们模块
     * 
     * @param id 关于我们模块主键
     * @return 关于我们模块
     */
    @Override
    public CmsGywmModule selectCmsGywmModuleById(Long id)
    {
        return cmsGywmModuleMapper.selectCmsGywmModuleById(id);
    }

    /**
     * 查询关于我们模块列表
     * 
     * @param cmsGywmModule 关于我们模块
     * @return 关于我们模块
     */
    @Override
    public List<CmsGywmModule> selectCmsGywmModuleList(CmsGywmModule cmsGywmModule)
    {
        return cmsGywmModuleMapper.selectCmsGywmModuleList(cmsGywmModule);
    }

    /**
     * 新增关于我们模块
     * 
     * @param cmsGywmModule 关于我们模块
     * @return 结果
     */
    @Override
    public int insertCmsGywmModule(CmsGywmModule cmsGywmModule)
    {
        return cmsGywmModuleMapper.insertCmsGywmModule(cmsGywmModule);
    }

    /**
     * 修改关于我们模块
     * 
     * @param cmsGywmModule 关于我们模块
     * @return 结果
     */
    @Override
    public int updateCmsGywmModule(CmsGywmModule cmsGywmModule)
    {
        return cmsGywmModuleMapper.updateCmsGywmModule(cmsGywmModule);
    }

    /**
     * 批量删除关于我们模块
     * 
     * @param ids 需要删除的关于我们模块主键
     * @return 结果
     */
    @Override
    public int deleteCmsGywmModuleByIds(Long[] ids)
    {
        return cmsGywmModuleMapper.deleteCmsGywmModuleByIds(ids);
    }

    /**
     * 删除关于我们模块信息
     * 
     * @param id 关于我们模块主键
     * @return 结果
     */
    @Override
    public int deleteCmsGywmModuleById(Long id)
    {
        return cmsGywmModuleMapper.deleteCmsGywmModuleById(id);
    }
}
